home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
graphics
/
amicad
/
arexx_english
/
underline.amicad
< prev
next >
Wrap
Text File
|
1999-12-06
|
758b
|
39 lines
/* Soulignement d'un ou plusieurs textes */
/* $VER: Souligner 1.00e (© R.Florac, 11 octobre 1998 */
options results
signal on error
signal on syntax
objets=0
'SAVEALL(-1):FIRSTSEL'; i=result
do while i>0
objets = objets + souligner(i)
'NEXTSEL('i')'; i=result
end
if objets=0 then do
'PICKOBJ("Select the text to underline")'
i=result
if i>0 then call souligner(i)
end
exit
souligner: procedure
parse arg i
'TYPE(O__='i')'; type=result
if type = 4 | type = 5 | type = 6 then do
'DRAW(COL(O__),LINE(O__)+1,COL(O__)+WIDTH(O__)+1,LINE(O__)+1)'
return 1
end
return 0
syntax:
erreur=RC
'MESSAGE("Syntax error"+CHR(10)+"in line 'SIGL'"+CHR(10)+"'errortext(erreur)'")'
exit
error:
'MESSAGE("Error in line 'SIGL'")'
exit